<?php

defined('GNUSOCIAL') || exit(1);

$config['site']['name'] = 'gnusocial';
$config['site']['server'] = 'localhost';
$config['site']['path'] = 'gnusocial';
$config['site']['fancy'] = false;
$config['site']['ssl'] = 'never';
$config['site']['sslproxy'] = false;
$config['site']['profile'] = 'public';
$config['site']['logdebug'] = false;
$config['site']['theme'] = 'neo-blue';
$config['site']['email'] = 'foo@example.com';
$config['site']['broughtby'] = null;
$config['site']['broughtbyurl'] = null;
$config['site']['notice'] = null;
// $config['site']['textlimit'] = 1000;

$config['db']['database'] = 'mysqli://foo:password@localhost/gnusocial';
$config['db']['type'] = 'mysql';
$config['db']['foreign_keys'] = true;
// Uncomment below for better performance. Just remember you must run
// php scripts/checkschema.php whenever your enabled plugins change!
$config['db']['schemacheck'] = 'script';

$config['syslog']['appname'] = 'gnu-social';

$config['queue']['enabled'] = true;
$config['queue']['daemon'] = true;
$config['queue']['subsystem'] = 'db';
$config['queue']['inboxes'] = true;

$config['license']['type'] = 'cc';
$config['license']['url'] = 'https://creativecommons.org/licenses/by/4.0/';
$config['license']['title'] = 'Creative Commons Attribution 4.0';
$config['license']['image'] = '/gnusocial/theme/licenses/cc_by_4.0_80x15.png';

$config['mail']['backend'] = 'smtp';
$config['mail']['params'] = [
  'host' => 'example.org',
  'port' => 465,
  'auth' => true,
  'username' => 'foo',
  'password' => 'password',
  'timeout' => 60,
  'verp' => false,
  'debug' => false,
  'persist' => true,
  'pipelining' => true
];

$config['nickname']['featured'] = ['admin'];

$config['avatar']['url_base'] = '/gnusocial/index.php/avatar';
// $config['avatar']['maxsize'] = 300;

$config['daemon']['piddir'] = __DIR__ . '/run/';
$config['daemon']['user'] = 'nobody';
$config['daemon']['group'] = 'nogroup';

$config['throttle']['enabled'] = true;
// $config['throttle']['count'] = 20;
// $config['throttle']['timespan'] = 600;

$config['profile']['changenick'] = false;
$config['profile']['allowprivate'] = true;
$config['profile']['backup'] = true;
$config['profile']['restore'] = true;
$config['profile']['delete'] = true;
$config['profile']['move'] = true;

$config['newuser']['default'] = 'admin';
$config['newuser']['welcome'] = 'admin';

$config['attachments']['url_base'] = '/gnusocial/index.php/file/';
$config['attachments']['dir'] = __DIR__ . '/file/uploads/';
// $config['attachments']['file_quota'] = '2M';
// $config['attachments']['user_quota'] = 50000000;
// $config['attachments']['monthly_quota'] = 15000000;
// $config['attachments']['memory_limit'] = '1024M';

$config['thumbnail']['url_base'] = '/gnusocial/index.php/thumb/';
$config['thumbnail']['dir'] = __DIR__ . '/file/thumb/';
$config['thumbnail']['animated'] = true;

session_save_path(__DIR__ . '/file/sessions/');

$config['sessions']['debug'] = false;

$config['notice']['allowprivate'] = true;

$config['nofollow']['external'] = 'always';
